.class Lrexsee/core/menu/PopMenu$1$7;
.super Ljava/lang/Object;
.source "PopMenu.java"

# interfaces
.implements Landroid/content/DialogInterface$OnKeyListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/menu/PopMenu$1;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lrexsee/core/menu/PopMenu$1;

.field private final synthetic val$browser:Lrexsee/core/browser/Browser;


# direct methods
.method constructor <init>(Lrexsee/core/menu/PopMenu$1;Lrexsee/core/browser/Browser;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/menu/PopMenu$1$7;->this$1:Lrexsee/core/menu/PopMenu$1;

    iput-object p2, p0, Lrexsee/core/menu/PopMenu$1$7;->val$browser:Lrexsee/core/browser/Browser;

    .line 144
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onKey(Landroid/content/DialogInterface;ILandroid/view/KeyEvent;)Z
    .locals 1
    .param p1, "dialog"    # Landroid/content/DialogInterface;
    .param p2, "keyCode"    # I
    .param p3, "event"    # Landroid/view/KeyEvent;

    .prologue
    .line 147
    const/4 v0, 0x4

    if-ne p2, v0, :cond_1

    .line 148
    iget-object v0, p0, Lrexsee/core/menu/PopMenu$1$7;->this$1:Lrexsee/core/menu/PopMenu$1;

    # getter for: Lrexsee/core/menu/PopMenu$1;->this$0:Lrexsee/core/menu/PopMenu;
    invoke-static {v0}, Lrexsee/core/menu/PopMenu$1;->access$0(Lrexsee/core/menu/PopMenu$1;)Lrexsee/core/menu/PopMenu;

    move-result-object v0

    # getter for: Lrexsee/core/menu/PopMenu;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v0}, Lrexsee/core/menu/PopMenu;->access$0(Lrexsee/core/menu/PopMenu;)Lrexsee/core/browser/Browser;

    move-result-object v0

    iget-object v0, v0, Lrexsee/core/browser/Browser;->menu:Lrexsee/core/menu/RexseeMenu;

    iget-boolean v0, v0, Lrexsee/core/menu/RexseeMenu;->isOptionsMenuOpen:Z

    if-eqz v0, :cond_0

    .line 149
    iget-object v0, p0, Lrexsee/core/menu/PopMenu$1$7;->val$browser:Lrexsee/core/browser/Browser;

    invoke-virtual {v0}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object p0

    .end local p0    # "this":Lrexsee/core/menu/PopMenu$1$7;
    check-cast p0, Landroid/app/Activity;

    invoke-virtual {p0}, Landroid/app/Activity;->closeOptionsMenu()V

    .line 153
    :goto_0
    const/4 v0, 0x1

    .line 155
    :goto_1
    return v0

    .line 151
    .restart local p0    # "this":Lrexsee/core/menu/PopMenu$1$7;
    :cond_0
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    goto :goto_0

    .line 155
    :cond_1
    const/4 v0, 0x0

    goto :goto_1
.end method
